package com.tl.sun.model;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by apple on 17/3/25.
 */

public class SystemMsgBean {

    /**
     * ret : 0
     * code : 1
     * msg : success
     * ret_data : [{"id":25,"title":"跳转","content":"系统","create_time":"1490431581","is_show":1,"send_time":1490431583,"type":2,"android_url":"http://www.baidu.com","ios_url":"","plat":2,"activity":"2","send_date":"2017-03-25 14:29:29","is_single":0,"read_flag":1,"msg_id":6},{"id":24,"title":"微信","content":"微信","create_time":"1490423454","is_show":1,"send_time":1490423457,"type":1,"android_url":"http://www.baidu.com","ios_url":"","plat":2,"activity":"1","send_date":"2017-03-25 14:29:45","is_single":1,"read_flag":1,"msg_id":7},{"id":24,"title":"微信","content":"微信","create_time":"1490423454","is_show":1,"send_time":1490423457,"type":1,"android_url":"http://www.baidu.com","ios_url":"","plat":2,"activity":"1","send_date":"2017-03-25 14:30:10","is_single":1,"read_flag":0,"msg_id":11},{"id":24,"title":"微信","content":"微信","create_time":"1490423454","is_show":1,"send_time":1490423457,"type":1,"android_url":"http://www.baidu.com","ios_url":"","plat":2,"activity":"1","send_date":"2017-03-25 14:30:26","is_single":0,"read_flag":0,"msg_id":15},{"id":24,"title":"微信","content":"微信","create_time":"1490423454","is_show":1,"send_time":1490423457,"type":1,"android_url":"http://www.baidu.com","ios_url":"","plat":2,"activity":"1","send_date":"2017-03-25 14:30:57","is_single":0,"read_flag":0,"msg_id":16},{"id":25,"title":"跳转","content":"系统","create_time":"1490431581","is_show":1,"send_time":1490431583,"type":2,"android_url":"http://www.baidu.com","ios_url":"","plat":2,"activity":"2","send_date":"2017-03-25 16:07:40","is_single":0,"read_flag":0,"msg_id":18},{"id":25,"title":"跳转","content":"系统","create_time":"1490431581","is_show":1,"send_time":1490431583,"type":2,"android_url":"http://www.baidu.com","ios_url":"","plat":2,"activity":"2","send_date":"2017-03-25 16:07:54","is_single":0,"read_flag":0,"msg_id":19},{"id":25,"title":"跳转","content":"系统","create_time":"1490431581","is_show":1,"send_time":1490431583,"type":2,"android_url":"http://www.baidu.com","ios_url":"","plat":2,"activity":"2","send_date":"2017-03-25 16:46:23","is_single":0,"read_flag":0,"msg_id":36}]
     * timestamp : 1490432037
     */

    private String ret;
    private String code;
    private String msg;
    private int timestamp;
    private List<RetDataBean> ret_data;

    public String getRet() {
        return ret;
    }

    public void setRet(String ret) {
        this.ret = ret;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public List<RetDataBean> getRet_data() {
        return ret_data;
    }

    public void setRet_data(List<RetDataBean> ret_data) {
        this.ret_data = ret_data;
    }

    public static class RetDataBean {
        /**
         * id : 25
         * title : 跳转
         * content : 系统
         * create_time : 1490431581
         * is_show : 1
         * send_time : 1490431583
         * type : 2
         * android_url : http://www.baidu.com
         * ios_url :
         * plat : 2
         * activity : 2
         * send_date : 2017-03-25 14:29:29
         * is_single : 0
         * read_flag : 1
         * msg_id : 6
         */

        private int id;
        private String title;
        private String content;
        private String create_time;
        private int is_show;
        private int send_time;
        private int type;
        private String android_url;
        private String ios_url;
        private int plat;
        private String activity;
        private String send_date;
        private int is_single;
        @SerializedName("read_flag")
        private String readFlag;
        private int msg_id;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public int getIs_show() {
            return is_show;
        }

        public void setIs_show(int is_show) {
            this.is_show = is_show;
        }

        public int getSend_time() {
            return send_time;
        }

        public void setSend_time(int send_time) {
            this.send_time = send_time;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getAndroid_url() {
            return android_url;
        }

        public void setAndroid_url(String android_url) {
            this.android_url = android_url;
        }

        public String getIos_url() {
            return ios_url;
        }

        public void setIos_url(String ios_url) {
            this.ios_url = ios_url;
        }

        public int getPlat() {
            return plat;
        }

        public void setPlat(int plat) {
            this.plat = plat;
        }

        public String getActivity() {
            return activity;
        }

        public void setActivity(String activity) {
            this.activity = activity;
        }

        public String getSend_date() {
            return send_date;
        }

        public void setSend_date(String send_date) {
            this.send_date = send_date;
        }

        public int getIs_single() {
            return is_single;
        }

        public void setIs_single(int is_single) {
            this.is_single = is_single;
        }

        public String getReadFlag() {
            return readFlag;
        }

        public void setReadFlag(String readFlag) {
            this.readFlag = readFlag;
        }

        public int getMsg_id() {
            return msg_id;
        }

        public void setMsg_id(int msg_id) {
            this.msg_id = msg_id;
        }
    }
}
